package com.codinghero.example.log4j;

import org.apache.log4j.Logger;

public class Log4jTest {

	public static void main(String[] args) {
		Logger log = Logger.getRootLogger();
		log.info("test");
		log = Logger.getLogger("codinghero");
		log.info("test2");
		new Thread(new LogThread()).start();
	}

	static class LogThread implements Runnable {

		public void run() {
			Logger log = Logger.getRootLogger();
			log.info("test");
		}
		
	}
}
